<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <meta name="viewport" content="width=device-width, user-scalable=0" />
    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>无标题文档</title>
        <style type="text/css">
            <!--
            body {
                background-image: url(images/bg.gif);
                margin-left: 0px;
                margin-top: 0px;
                margin-right: 0px;
                margin-bottom: 0px;
            }
            .font-style25 {
                font-family: "宋体", Arial, Helvetica, sans-serif;
                font-size: 14px;
            }
            .font-style35 {
                font-family: "宋体", Arial, Helvetica, sans-serif;
                font-size: 16px;
                font-weight: bold;
            }
            .input_word {	height: 25px;
                          width: 200px;
                          BACKGROUND-IMAGE: url(images/input_1.png); 
                          BACKGROUND-REPEAT: no-repeat;
                          BORDER-LEFT-STYLE:none;
                          BORDER-RIGHT-STYLE: none;
                          BORDER-TOP-STYLE: none;
                          BORDER-bottom-STYLE: none;
                          padding-left:10px
            }
            .input_password {	height: 25px;
                              width: 200px;
                              BACKGROUND-IMAGE: url(images/input_2.png); 
                              BACKGROUND-REPEAT: no-repeat;
                              BORDER-LEFT-STYLE:none;
                              BORDER-RIGHT-STYLE: none;
                              BORDER-TOP-STYLE: none;
                              BORDER-bottom-STYLE: none;
                              padding-left:10px
            }
            .c1,.c2{
                width:185px;
                line-height:240px;
            }
            .STYLE1 {color: #3366FF}
            .STYLE3 {font-family: "宋体", Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; color: #CC0066; }
            -->
        </style>
        <script type="text/javascript">
            function radioShow(){
                var r1 = document.getElementById("r1");
                var r2 = document.getElementById("r2");
                var c1 = document.getElementById("c1");
                var c2 = document.getElementById("c2");
                if(r1.checked){
                    c1.style.display = "block";
                    c2.style.display = "none";
                }
                if(r2.checked){
                    c1.style.display = "none";
                    c2.style.display = "block";
                }
            }
            function submitCheck(){
                var email = document.getElementById("email").value;
                var password = document.getElementById("password").value;
                var password2 = document.getElementById("password2").value;
                var name = document.getElementById("name").value;
                var sex = document.getElementById("sex").value;
                var cansubmit = true;
                if(email==""){
                    alert("请输入邮箱");
                    cansubmit = false;
                }else if(password==""){
                    alert("请输入密码");
                    cansubmit = false;
                }else if(password2==""){
                    alert("请输入确认密码");
                    cansubmit = false;
                }else if(name==""){
                    alert("请输入昵称");
                    cansubmit = false;
                }else if(password!=password2){
                    alert("两次输入的密码不一样");
                    cansubmit = false;
                }else if(name.length<3||name.length>12){
                    alert("昵称小于3个字或者大于12个字");
                    cansubmit = false;
                }
                if(!cansubmit){
                    event.returnValue = false;
                }
            }
        </script>
        <script language="javascript" type="text/javascript">
            // 密码输入框JScript 文件
            function getStar(control,logValue,txt)
            {
                if(control.value==logValue)
                {
                    control.value="";
                    control.style.color="black";
        
                    if(control.type=="text"){
                        control.style.display = "none";
                        document.getElementById('password').style.display = "block";
                        document.getElementById('password').style.color="black";
                        document.getElementById('password').value="";
                        document.getElementById('password').focus();//加上
                    }else{
                        var pass = document.getElementById('password').value;
                        if(pass.length<1){
                            control.style.display = "none";
                            document.getElementById('log').style.display = "block";
                        }
                    }
                }
            }
            function GetEnd(control,logValue,txt)
            {
                if(control.value=="")
                {
                    control.value="仅支持6～20位英文或数字";
                    control.style.color="#666666";
        
                    if(control.type=="password"){
                        control.style.display = "none";
                        document.getElementById('log').style.display = "block";
                        document.getElementById('log').value="仅支持6～20位英文或数字";
                        document.getElementById('log').style.color="#666666";
                        //document.getElementById('log').focus();//加上
                    }
                    else{
                        var pass = document.getElementById('log').value;
            
                        if(pass.length<1){
                            control.style.display = "none";
                            document.getElementById('log').style.display = "block";
                        }
                    }
                }
            }
            function back()
            {
//               history.back();
                location.href = "sign.php";
            }
        </script>
    </head>
    <?php
    if (isset($_GET['errorMsg'])) {
        $errorMsg = trim($_GET['errorMsg']);
    } else {
        $errorMsg = "";
    }
    if (isset($_GET['errorNo'])) {
        $errorNo = trim($_GET['errorNo']);
    } else {
        $errorNo = "";
    }
    if ($errorNo == "0") {
        $msg = $errorMsg . "<br/><br/>请点击屏幕下方按钮返回登陆界面。";
    } else {
        $msg = "<font color=red>" . $errorMsg . "</font>";
    }
    ?>
    <body>
        <table width="528" border="0" align="center" cellpadding="0" cellspacing="0" >
            <tr>
                <td width="114" height="50" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="221" bgcolor="#FFFFFF">&nbsp;</td>
                <td width="193"><img src="images/i_1.gif" width="193" height="51" /></td>
            </tr>
            <tr>
                <td><img src="images/i_2.gif" width="114" height="60" /></td>
                <td><img src="images/i_3.gif" width="221" height="60" /></td>
                <td><img src="images/j_1.jpg" width="193" height="60" /></td>
            </tr>
            <tr>
                <td colspan="3" background="images/bg_2.gif"><table width="528" border="0" align="center" cellpadding="10" cellspacing="0">
                        <tr>
                            <td><table width="100%" height="175" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td align="center" class="font-style25"><?php echo $msg; ?></td>
                                                </tr>
                                                <tr>
                                                    <td align="center" class="font-style25">&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td align="center" class="font-style25">&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td align="center" class="font-style25"><?php if ($errorNo != "0") {?><a href="#" onclick="back()"><img src="images/back.gif"></img></a><?php }?></td>
                                                </tr>
                                            </table></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table></td>
            </tr>
            <tr>
                <td colspan="3"><table width="528" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="18"><img src="images/i_4.gif" width="18" height="18" /></td>
                            <td width="505" background="images/bg_3.gif">&nbsp;</td>
                            <td width="18"><img src="images/i_5.gif" width="18" height="18" /></td>
                        </tr>
                    </table></td>
            </tr>
        </table>
    </body>
</html>
